﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuTouTiaoAssist.Util
{
    /// <summary>
    /// 对话框工具
    /// </summary>
    class MsgBox
    {
        /// <summary>
        /// 显示提示对话框
        /// </summary>
        /// <param name="content">对话框内容</param>
        /// <returns></returns>
        public static DialogResult ShowInfo(string content)
        {
            return MessageBox.Show(content, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        /// <summary>
        /// 显示询问对话框
        /// </summary>
        /// <param name="content"></param>
        /// <returns></returns>
        public static DialogResult ShowYesNo(string content)
        {
            return MessageBox.Show(content, "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
